<%- bundles ||= switch_bundles -%>
<div id="switch_bundle_form" class="clearfix">
  <%- form_tag switch_to_bundles_path, :class => "select_bundle" do -%>
    <fieldset>
      <label for="bundle_id" class="large text">Switch active bundle</label>
      <%= collection_select :bundle, :id, bundles, :id, :title %>
      <button type="submit">
        <%= image_tag "arrow_switch.png" %>
        Switch
      </button>
    </fieldset>
  <%- end -%>
  <%= link_to "#{image_tag("add.png")} Create New...", new_bundle_path, :id => "new_bundle_button", :class => "positive button" %>
  <%= link_to "#{image_tag("application_view_tile.png")} Compare", bundles_path, :class => "button" %>
  <div id="new_bundle_control" class="clearfix" style="display: none">
    <%= partial 'bundles/new_bundle'%>
  </div>
</div>
